-- GENERATED SPELL FOR [Princess Tempestria] --


function spell0_14457(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(22746,pUnit)
pUnit:RegisterEvent('Sorts_14457', 8306, 1)
end

function spell1_14457(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(14907,pUnit)
pUnit:RegisterEvent('Sorts_14457', 8259, 1)
end

function spell2_14457(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(23102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14457', 5000, 1)
end

function spell3_14457(pUnit, Event) --@Geyser,Self--
pUnit:FullCastSpellOnTarget(10987,pUnit)
pUnit:RegisterEvent('Sorts_14457', 5317, 1)
end

function Sorts_14457(pUnit, Event)
local choix_sorts_14457 = math.random(0, 3)
if choix_sorts_14457 == 0 then
pUnit:RegisterEvent('spell0_14457', 1, 1)
end
if choix_sorts_14457 == 1 then
pUnit:RegisterEvent('spell1_14457', 1, 1)
end
if choix_sorts_14457 == 2 then
pUnit:RegisterEvent('spell2_14457', 1, 1)
end
if choix_sorts_14457 == 3 then
pUnit:RegisterEvent('spell3_14457', 1, 1)
end
end

function mob14457_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14457', math.random(1500, 3000), 1)
end

function mob14457_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14457_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14457_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14457, 1, 'mob14457_Action')
RegisterUnitEvent(14457, 2, 'mob14457_Leave')
RegisterUnitEvent(14457, 3, 'mob14457_Kill')
RegisterUnitEvent(14457, 4, 'mob14457_Die')
